package com.migration.model.olddb;

import jakarta.persistence.*;
import lombok.Data;
import java.time.LocalDateTime;
import java.io.Serializable;

/**
 * Oss File 实体类
 * 表名：oss_file
 * 自动生成的实体类
 */
@Data
@Entity
@Table(name = "oss_file")
public class OssFile implements Serializable {

    private static final long serialVersionUID = 1L;
    
    /**
     * 主键id
     * 主键
     */
    @Id
    @Column(name = "id", nullable = false, length = 32)
    private String id;
    
    /**
     * 文件名称
     */
    @Column(name = "file_name", length = 255)
    private String fileName;
    
    /**
     * 文件地址
     */
    @Column(name = "url", length = 255)
    private String url;
    
    /**
     * 创建人登录名称
     */
    @Column(name = "create_by", length = 32)
    private String createBy;
    
    /**
     * 创建日期
     */
    @Column(name = "create_time")
    private java.time.LocalDateTime createTime;
    
    /**
     * 更新人登录名称
     */
    @Column(name = "update_by", length = 32)
    private String updateBy;
    
    /**
     * 更新日期
     */
    @Column(name = "update_time")
    private java.time.LocalDateTime updateTime;
    
    @Override
    public String toString() {
        return "OssFile{" +
            "id=" + id +
            ", fileName=" + fileName +
            ", url=" + url +
            ", createBy=" + createBy +
            ", createTime=" + createTime +
            ", updateBy=" + updateBy +
            ", updateTime=" + updateTime +
        '}';
    }
} 